import re

def is_phone(phone):
    phone_pat = re.compile('^(13\d|14[5|7]|15\d|166|17[3|6|7]|18\d)\d{8}$')
    res = re.search(phone_pat, phone)
    if not res:
        return False
    return True


def is_name(name):

    reg =re.compile('^[\u4E00-\u9FA5\uf900-\ufa2d·s]{1,20}$') #验证姓名正则 

    res=re.match(reg,name)

    if not res:

        return False

    return True


if __name__ == "__main__":
    print(is_name(''))


